﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BingVis.SilverlightClient.Common;

namespace BingVis.SilverlightClient.GoogleTransit
{
    public class TransitRoute : ITransitRoute
    {

        public string Id { get; set; }
        public string AgencyId { get; set; }
        public string ShortName { get; set; }
        public string LongName { get; set; }
        public string Description { get; set; }
        public int Type { get; set; }
        public string Url { get; set; }
        public string ColorHex { get; set; }

        public IEnumerable<ITransitTrip> Trips { get; private set;}

        public TransitRoute(IEnumerable<ITransitTrip> trips)
        {
            Trips = trips;
            foreach (var trip in Trips)
            {
                trip.Route = this;
            }
        }
    }
}
